function Stage() {
    // this.id = id;
    // this.target = target;
    this.init();
}

Stage.prototype.init = function () {
    this.landArr = new Array();
    this.landPropertiesArr = new Array();
    this.target = 0;

    this.id = 0;
    this.lv = 0;
    this.grade = 0;
    this.name = "";
    this.rowNum = 0;
    this.allNum = 0;
    this.initLocalX = 0;
    this.initLocalY = 0;
    this.initDir = 12001;
    this.hasFunc1 = 0;
    this.hasFunc2 = 0;
    this.sysTokenMax = 0;
    this.mainTokenMax = 0;
    this.func1TokenMax = 0;
    this.func2TokenMax = 0;
    this.comment = "";
    this.sound = 0;
    this.bestCode = 0;
    this.bestTime = 0;

}
Stage.prototype.setValueFromCfg = function (cfg) {
    this.landArr = new Array();
    this.landPropertiesArr = new Array();
    this.target = 0;

    this.id = cfg.id;
    this.lv = cfg.lv;
    this.grade = cfg.grade;
    this.name = cfg.name;
    this.rowNum = cfg.rowNum;
    this.allNum = cfg.allNum;
    this.initLocalX = cfg.initLocalX;
    this.initLocalY = cfg.initLocalY;
    this.initDir = cfg.initDir;
    this.hasFunc1 = cfg.hasFunc1;
    this.hasFunc2 = cfg.hasFunc2;
    this.sysTokenMax = cfg.sysTokenMax;
    this.mainTokenMax = cfg.mainTokenMax;
    this.func1TokenMax = cfg.func1TokenMax;
    this.func2TokenMax = cfg.func2TokenMax;
    this.comment = cfg.comment;
    this.sound = cfg.sound;
    this.bestCode = cfg.bestCode;
    this.bestTime = cfg.bestTime;
}

Stage.prototype.toString = function () {
    // console.log("Stage:{type:" + type + ",value:" + value + "}");
    console.log("Stage:{type:" + "}");
}

module.exports = Stage; 